package com.观察者模式.案列2;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Configuration
public class TheradPollConfig {

    @Bean
    public ExecutorService  newFixedThreadPool(){
        return Executors.newFixedThreadPool(4);
    }
}
